import request from '../request'

export function pcLogin(params) {
  return request({
    url: '/report/sysUser/login',
    method: 'POST',
    data: params
  })
}

export function getMenuByRoleId(params) {
  return request({
    url: '/hSysMenu/getMenuByRoleId',
    method: 'GET',
    params
  })
}

export function getPermByRoleId(params) {
  return request({
    url: '/hSysMenu/getPermByRoleId',
    method: 'GET',
    params
  })
}

// 获取菜单
export function getMenuByRole(params) {
  return request({
    url: '/report/sysRoleMenu/getMenuByRole',
    method: 'GET',
    params
  })
}
